<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>操作成功</title>
	<link rel="stylesheet" href="/assets/bootstrap/css/bootstrap.min.css">
	<style>
		.alert {
			margin-top: 50px;
		}

		.alert .glyphicon-ok {
		    float: left;
		    font-size: 27px;
		    margin-left: 10px;
		}

		.alert .msg-header, .alert .msg-content, .alert .msg-footer {
			padding-left: 64px;
		}

		.alert .msg-content {
			margin-top: 10px;
			text-indent: 2em; 
		}

		.alert .msg-footer {
			margin-top: 10px;
		}
	</style>
</head>
<body>
	<div class="container">
		<div class="alert alert-success">
			<span class="glyphicon glyphicon-ok"></span>
			<div class="msg-header">
				<h5><?= $this->lang->line('success') ?></h5>
			</div>
			<div class="msg-content">
				<?= $this->lang->line('success') ?>
				<span id="time">5</span>
				<?= $this->lang->line('success_redirect') ?>
			</div>
			<div class="msg-footer">
				<a href="<?= site_url("admin/{$this->router->class}/index") ?>" class="text-primary"><?= $this->lang->line('redirect_now'); ?></a>
			</div>
		</div>
	</div>
<script>
	var time = 5;
	setTimeout(function () {
		time--;
		if (time <= 0) {
			window.location.href = '<?= site_url("admin/{$this->router->class}/index") ?>';
		}
		document.getElementById('time').innerHTML = time;
		setTimeout(arguments.callee, 1000);
	}, 1000);
</script>
</body>
</html>